Upper gastrointestinal endoscopy with biopsy